import request from '@/utils/request';
import { API } from './enumAPI';
// 设备分类
export const reqDeviceType = () => request.get<any, any>(API.DEVICE_CLASSIFICATION_URL);
// AI分类告警
export const reqClassifictionAlarmList = (data: any = { data: {} }) => request.post<any, any>(API.ALARM_CLASSIFICATION_URL, data); // 设备告警
/**
 * 查询设备告警(资源|AI)
 * @param data 告警分类
 * @returns 根据告警分类返回的告警数据
 */
export const reqDeviceAlarmData = (data: any = { data: {} }) => request.post<any, any>(API.SCREEN_DEVICE_ALARM, data);
/**
 * 获取AI告警资源数据
 * @param data 时间+告警分类
 * @returns 告警视频、图片、音频数据
 */
export const reqAlarmResourceData = (data: any = { data: {} }) => request.post<any, any>(API.ALARM_RESOURCE_URL, data);
// 地图数据
export const reqMapAlertData = (data: any = { data: {} }) => request.post<any, any>(API.MAP_DATA_URL, data);
// 客户总数
export const reqUserTotalData = () => request.get<any, any>(API.USER_TOTAL_URL);
// 告警设备数
export const reqAlarmDevice = (data: any = { data: {} }) => request.post<any, any>(API.ALARM_DEVICE_URL, data);
